/*
<Copyright (C) 2011 Dru Moore>

This file is part of demorecorder.

vlc-remote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

demorecorder is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with demorecorder.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMPOSITION_H
#define COMPOSITION_H

#include <QObject>
#include <QString>
#include <gst/gst.h>

class Composition : public QObject
{
    Q_OBJECT
public:
    explicit Composition(QObject *parent = 0);
    Composition(QString name);

signals:
    // what to do with onPadAdded !!

public slots:
    bool addFileSource(QString name, QString location, long long start, long long duration, long long mediaStart, long long mediaDuration, int priority);
    void removeSource(QString name);
    GstElement *getComposition();
    QString getName();

private:
    QString name;
    GstElement *composition;
    GstElement *audioconvert;
    void construct_composition();
};

#endif // COMPOSITION_H
